package com.example.paper.http.logUtils;

import com.blankj.utilcode.util.EncryptUtils;

import java.util.Arrays;

public class MD5Utils {

    //MD5加密
    public static String createString(String oldStr) {
        //是否是空的
        if (oldStr.isEmpty()) {
            return "";
        }

        char[] arrs = oldStr.toCharArray();
        Arrays.sort(arrs);
        String str = new String(arrs);
        return EncryptUtils.encryptMD5ToString(str + "tamboo").toLowerCase();
    }

}
